package com.ynet.middleground.contract.bean;

import javax.validation.constraints.NotEmpty;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 新增合约类型请求类
 * @date 2020-04-06 03:20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "新增合约类型请求类", description = "新增合约类型请求类")
public class AddContractTypeReq extends BaseReqObj {

    private static final long serialVersionUID = -2642701170023380110L;

    @ApiModelProperty(value = "业态公司 id \n（仅综合管理平台使用）", notes = "业态公司 id \n（仅综合管理平台使用）", dataType = "Integer")
    private Integer formatId;

    /**
     * 类型代码
     */
    @ApiModelProperty(value = "类型代码", notes = "类型代码，生成合约编码时使用的编码值", dataType = "String", required = true)
    @NotEmpty(message = "类型代码不能为空")
    private String code;

    /**
     * 类型名称
     */
    @ApiModelProperty(value = "类型名称", notes = "类型名称", dataType = "String", required = true)
    @NotEmpty(message = "类型名称不能为空")
    private String name;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述", notes = "描述", dataType = "String")
    private String description;

}
